#define _CRT_SECURE_NO_WARNINGS 1
#include"NewHeap.h"


void Test1(void)
{
	Heap hp;
	HeapInit(&hp);
	HeapPush(&hp, 10);
	HeapPush(&hp, 5);
	HeapPush(&hp, 6);
	HeapPush(&hp, 9);
	HeapPush(&hp, 10);
	HeapPush(&hp, 1);
	HeapDestory(&hp);

}
Test2()
{
	Heap hp;
	HeapInit(&hp);
	HeapPush(&hp, 10);
	HeapPush(&hp, 5);
	HeapPush(&hp, 6);
	HeapPush(&hp, 9);
	HeapPush(&hp, 10);
	HeapPush(&hp, 1);
	HeapPop(&hp);
	HeapPop(&hp);
	HeapPop(&hp);
	HeapPop(&hp);

	HeapPop(&hp);

	HeapDestory(&hp);

}
int main()
{
	//Test1();
	Test2();

	return 0;
}